package com.zlm.user.partner.dao;

import com.zlm.common.base.BaseDao;
import com.zlm.common.entity.UserTokenDO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author: duyufu
 * @Date: 2019/4/9 9:31
 */
@Repository
public interface UserTokenDao extends BaseDao<UserTokenDO> {

    UserTokenDO getLoginPartner(@RequestParam("token") String token);

    int getPartnerToken(@Param("mobile") String mobile);

    void savePartnerToken(UserTokenDO userToken);

    void updatePartnerToken(UserTokenDO userToken);
}
